import Taro, { Component } from '@tarojs/taro'
import { View, Text, Image, Picker, Swiper, SwiperItem } from '@tarojs/components'
import { AtList, AtListItem, AtTextarea, AtButton } from 'taro-ui'
import './zhuanzhenHuanZhe.scss'
import { $redirectTo, $navigateTo } from '../../../global';
import reactMixin from 'react-mixin';
import myJs from './zhuanzhenHuanZheJs.js'
import app from '../../../main.js'

export default class ZhuanzhenHuanZhe extends Component {
    config = {
        navigationBarTitleText: '转诊患者'
    }
    constructor() {
        super(...arguments);
        this.state = this.getData();
    }
    init() { }
    go(url) {
        $navigateTo(url);
    }
    render() {
        return (
            <View className='zhuanzhenHuanZhe'>
                <AtList>
                    <AtListItem title='选择医生好友' arrow='right' hasBorder={false} onClick={this.go.bind(this, '../xuanZeJieZhenYiSheng/xuanZeJieZhenYiSheng')}></AtListItem>
                </AtList>
                <AtTextarea className=' class_0'
                    value={this.state.transfer.desc}
                    onChange={this.handleTextareaChange.bind(this,'transfer.desc')}
                    maxLength={200}
                    placeholder='请输入转诊描述'
                />
                <View className='blank-box'></View>
                <AtButton type='primary' full size='normal' className='btn' onClick={this.go.bind(this, '../chakanbingli1/chakanbingli1')}>发送</AtButton>
            </View>
        );
    }
}
reactMixin.onClass(ZhuanzhenHuanZhe, myJs);